package com.dylan.channel.v7.future;


import com.dylan.channel.v7.channel.Channel;

public class DefaultChannelPromise extends DefaultPromise<Void> implements ChannelPromise {

    private final Channel channel;

    public DefaultChannelPromise(Channel channel) {
        this.channel = channel;
    }

    @Override
    public Channel channel() {
        return this.channel;
    }

    public ChannelPromise sync() {
        super.sync();
        return this;
    }
}
